package nth.randcats.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("RandomNumber")
public interface RandomNumber extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static RandomNumberAsync instance;
		public static RandomNumberAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(RandomNumber.class);
			}
			return instance;
		}
	}

	int getRandomNumber(String netid, String password, int max);
}
